//
//  NSDictionary+Category.h
//  lc-collect
//
//  Created by mac on 2021/3/3.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSDictionary (Category)

/// json字符串转字典
/// @param JSONString string
+ (NSDictionary *)JSONStringTransToDic:(NSString *)JSONString;

/// NSDictionary转换成JSON字符串
- (NSString *)dictionaryToJSONString;

/// 将url参数转换成NSDictionary
/// @param query url 参数
+ (NSDictionary *)dictionaryWithURLQuery:(NSString *)query;

/// 将NSDictionary转换成url 参数字符串
- (NSString *)dictionaryToUrlQueryString;

/// 将NSDictionary转换成XML 字符串
- (NSString *)ductionaryToXMLString;

@end

NS_ASSUME_NONNULL_END
